-- GENERATED SPELL FOR [Sparkleshell Borer] --


function spell0_4144(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4144', 20000, 1)
end

function Sorts_4144(pUnit, Event)
local choix_sorts_4144 = math.random(0, 0)
if choix_sorts_4144 == 0 then
pUnit:RegisterEvent('spell0_4144', 1, 1)
end
end

function mob4144_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4144', math.random(1500, 3000), 1)
end

function mob4144_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4144_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4144_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4144, 1, 'mob4144_Action')
RegisterUnitEvent(4144, 2, 'mob4144_Leave')
RegisterUnitEvent(4144, 3, 'mob4144_Kill')
RegisterUnitEvent(4144, 4, 'mob4144_Die')
